package test00.tx02.demo03;

public class MainTest {
    public static void main(String[] args) {
        Runnable runnable = ()->{
                for (int i = 0; i < 10; i++) {
                    System.out.println("好好学习");
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        throw new RuntimeException(e);
                    }
                }
        };
        runnable.run();
    }
}
